home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2006 December / PCWDEC06.iso / Software / Trial / Paint Shop Pro XI / Data1.cab / _6B0430BF30434FF4BEFDF68864BCAECB < prev    next >
Encoding:
Text File  |  2006-08-04  |  5.7 KB  |  156 lines

  1. from PSPApp import *
  2. import PSPUtils
  3.  
  4. def ScriptProperties():
  5.     return {
  6.         'Author': 'Angela M. Cable',
  7.         'Copyright': '2003 for freeware distribution only',
  8.         'Description': "Adds space around an image and creates and edge effect. Additional effects can be achieved by altering the Brush Strokes dialog.",
  9.         'Host': 'Paint Shop Pro',
  10.         'Host Version': '8.00'
  11.         }
  12.  
  13.  
  14. def Do(Environment):
  15.     if PSPUtils.LayerIsBackground( Environment, App.TargetDocument ):
  16.         App.Do( Environment, 'LayerPromoteBackground', {
  17.                 'GeneralSettings': {
  18.                     'ExecutionMode': App.Constants.ExecutionMode.Default, 
  19.                     'AutoActionMode': App.Constants.AutoActionMode.Match
  20.                     }
  21.                 })
  22.  
  23.     App.Do( Environment, 'MaskShowAll', {
  24.             'GeneralSettings': {
  25.                 'ExecutionMode': App.Constants.ExecutionMode.Default, 
  26.                 'AutoActionMode': App.Constants.AutoActionMode.Match
  27.                 }
  28.             })
  29.  
  30.     App.Do( Environment, 'SelectAll', {
  31.             'GeneralSettings': {
  32.                 'ExecutionMode': App.Constants.ExecutionMode.Default, 
  33.                 'AutoActionMode': App.Constants.AutoActionMode.Match
  34.                 }
  35.             })
  36.  
  37.     App.Do( Environment, 'SelectContract', {
  38.             'ContractAmount': 20, 
  39.             'GeneralSettings': {
  40.                 'ExecutionMode': App.Constants.ExecutionMode.Silent, 
  41.                 'AutoActionMode': App.Constants.AutoActionMode.Match
  42.                 }
  43.             })
  44.  
  45.     App.Do( Environment, 'SelectInvert', {
  46.             'GeneralSettings': {
  47.                 'ExecutionMode': App.Constants.ExecutionMode.Default, 
  48.                 'AutoActionMode': App.Constants.AutoActionMode.Match
  49.                 }
  50.             })
  51.  
  52.     App.Do( Environment, 'Fill', {
  53.             'BlendMode': 0, 
  54.             'MatchMode': 1, 
  55.             'Material': {
  56.                 'Color': (0,0,0), 
  57.                 'Pattern': None, 
  58.                 'Gradient': None, 
  59.                 'Texture': None
  60.                 }, 
  61.             'UseForground': App.Constants.Boolean.true, 
  62.             'Opacity': 100, 
  63.             'Point': (1.000000000,1.000000000), 
  64.             'SampleMerged': 0, 
  65.             'Tolerance': 200, 
  66.             'GeneralSettings': {
  67.                 'ExecutionMode': App.Constants.ExecutionMode.Default, 
  68.                 'AutoActionMode': App.Constants.AutoActionMode.Match
  69.                 }
  70.             })
  71.  
  72.     App.Do( Environment, 'SelectNone', {
  73.             'GeneralSettings': {
  74.                 'ExecutionMode': App.Constants.ExecutionMode.Default, 
  75.                 'AutoActionMode': App.Constants.AutoActionMode.Match
  76.                 }
  77.             })
  78.  
  79.     App.Do( Environment, 'BrushStrokes', {
  80.             'Angle': 52, 
  81.             'Bristles': 17, 
  82.             'Color': (0,0,0), 
  83.             'Density': 89, 
  84.             'Length': 6, 
  85.             'Opacity': 81, 
  86.             'Softness': 10, 
  87.             'Width': 18, 
  88.             'GeneralSettings': {
  89.                 'ExecutionMode': App.Constants.ExecutionMode.Interactive, 
  90.                 'RandomSeed': 17946410, 
  91.                 'AutoActionMode': App.Constants.AutoActionMode.Match
  92.                 }
  93.             })
  94.  
  95.     App.Do( Environment, 'SelectLayer', {
  96.             'Path': (1,0,[],App.Constants.Boolean.false), 
  97.             'GeneralSettings': {
  98.                 'ExecutionMode': App.Constants.ExecutionMode.Silent, 
  99.                 'AutoActionMode': App.Constants.AutoActionMode.Default
  100.                 }
  101.             })
  102.  
  103.     App.Do( Environment, 'NewRasterLayer', {
  104.             'General': {
  105.                 'Opacity': 100, 
  106.                 'Name': PSPUtils.LayerName_Photoedges, 
  107.                 'IsVisible': App.Constants.Boolean.true, 
  108.                 'IsTransparencyLocked': App.Constants.Boolean.false, 
  109.                 'LinkSet': 0, 
  110.                 'UseHighlight': App.Constants.Boolean.false, 
  111.                 'PaletteHighlightColor': (255,255,64), 
  112.                 'GroupLink': App.Constants.Boolean.true, 
  113.                 'BlendMode': App.Constants.BlendMode.Normal
  114.                 }, 
  115.             'BlendRanges': {
  116.                 'BlendRangeGreen': (0,0,255,255,0,0,255,255), 
  117.                 'BlendRangeRed': (0,0,255,255,0,0,255,255), 
  118.                 'BlendRangeBlue': (0,0,255,255,0,0,255,255), 
  119.                 'BlendRangeGrey': (0,0,255,255,0,0,255,255)
  120.                 }, 
  121.             'GeneralSettings': {
  122.                 'ExecutionMode': App.Constants.ExecutionMode.Silent, 
  123.                 'AutoActionMode': App.Constants.AutoActionMode.Match
  124.                 }
  125.             })
  126.  
  127.     App.Do( Environment, 'LayerArrange', {
  128.             'Path': (0,-1,[],App.Constants.Boolean.false), 
  129.             'MoveAboveSibling': App.Constants.Boolean.false, 
  130.             'GeneralSettings': {
  131.                 'ExecutionMode': App.Constants.ExecutionMode.Silent, 
  132.                 'AutoActionMode': App.Constants.AutoActionMode.Default
  133.                 }
  134.             })
  135.  
  136.     App.Do( Environment, 'Fill', {
  137.             'BlendMode': 0, 
  138.             'MatchMode': 1, 
  139.             'Material': {
  140.                 'Color': (255,255,255), 
  141.                 'Pattern': None, 
  142.                 'Gradient': None, 
  143.                 'Texture': None
  144.                 }, 
  145.             'UseForground': App.Constants.Boolean.false, 
  146.             'Opacity': 100, 
  147.             'Point': (1.100000000,1.000000000), 
  148.             'SampleMerged': 0, 
  149.             'Tolerance': 200, 
  150.             'GeneralSettings': {
  151.                 'ExecutionMode': App.Constants.ExecutionMode.Default, 
  152.                 'AutoActionMode': App.Constants.AutoActionMode.Match
  153.                 }
  154.             })
  155.  
  156.